package com.jctrip.hotel.source.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestHeader;
import org.springframework.web.bind.annotation.RequestMapping;

import com.jctrip.hotel.source.model.hworld.resp.HworldTokenResult;

/**
 * @Author henry
 * @Date 2023/5/24 21:58
 * @Description
 */
@FeignClient(name = "HworldTokenClient", url = "${feign.url.hworld.token}")
@RequestMapping(headers = { "accept=application/json", "Content-Type=application/json"})
public interface HworldTokenClient {
    @PostMapping
    HworldTokenResult getToken(@RequestHeader("Authorization") String key);
}
